package com.yjd.comm.borrow.util;

import java.util.List;

import com.yjd.comm.borrow.model.BorrowModel;
import com.yjd.comm.borrow.model.CreditorModel;
import com.yjd.comm.borrow.model.ProfitFormModel;
import com.yjd.comm.borrow.service.IUseRaiseInterestVolumeClientService;
import com.yjd.comm.util.ServiceHolder;

/**
 * <b>description</b>：代金券工具类 <br>
 * <b>time</b>：2015-5-13下午6:36:36 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public class RaiseInterestVolumeUtil {
	private RaiseInterestVolumeUtil() {
	}

	private static final String USERAISEINTERESTVOLUMECLIENTSERVICE = "useRaiseInterestVolumeClientService";

	private static IUseRaiseInterestVolumeClientService getUseRaiseInterestVolumeClientService() {
		return ServiceHolder.getService(IUseRaiseInterestVolumeClientService.class,
				USERAISEINTERESTVOLUMECLIENTSERVICE);
	}

	/**
	 * 有加息券的情况下构建还款报表
	 * 
	 * @param creditorModel
	 * @param borrowModel
	 * @return
	 * @throws Exception
	 */
	public static List<ProfitFormModel> buildProfitForm(CreditorModel creditorModel,
			BorrowModel borrowModel) throws Exception {
		return getUseRaiseInterestVolumeClientService().buildProfitForm(creditorModel, borrowModel);
	}
}
